package com.zui.entity.product;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zui.entity.BaseAssignedIdEntity;

@Entity
@Table(name="product_content_type")
public class ProductContentType extends BaseAssignedIdEntity {
	private static final long serialVersionUID = 1L;
	
	public static final String TYPE_LARGE_IMAGE_URL = "LARGE_IMAGE_URL";
	public static final String TYPE_MEDIUM_IMAGE_URL = "MEDIUM_IMAGE_URL";
	public static final String TYPE_THUMBNAIL_IMAGE_URL = "THUMBNAIL_IMAGE_URL";
	
	private String name;
	private String nameEn;
	private ProductContentType parentType;
	
	public ProductContentType() {
	}	
	public ProductContentType(String id) {
		this.id = id;
	}

	
	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	@Column(length=50)
	public String getName() {return name;}
	@Column(length=50)
	public String getNameEn() {	return nameEn;}
	@ManyToOne	@JoinColumn(name="parentTypeId")
	public ProductContentType getParentType() {return parentType;}
	
	
	public void setParentType(ProductContentType parentType) {
		this.parentType = parentType;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}
}
